package com.java.basis.thread.create;

import lombok.extern.slf4j.Slf4j;

/**
 * 线程创建方式二：实现Runnable接口
 * @author wangning
 * @create 2022-01-13 16:20
 */
@Slf4j(topic = "c.ThreadCreateTest02")
public class ThreadCreateTest02 {
	public static void main(String[] args) {
//		Runnable runnable = new Runnable() {
//			@Override
//			public void run() {
//				log.debug("hello");
//
//			}
//		};`
		Runnable runnable = () -> log.debug("hello");

		Thread t = new Thread(runnable, "tt");

		t.start();

	}
}
